<?php
namespace app\index\validate;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/12
 * Time: 15:12
 */
use think\Validate;
class Wlogin extends Validate
{
    protected $rule = [
        'u_email'         => 'require|number|length:11',
        'u_password' => 'require',
//        'verify'   => 'require|captcha'
    ];

    protected $message = [
        'u_email.require'           => '请输入手机号',
        'u_email.number'            => '手机号格式错误',
        'u_email.length'            => '手机号长度错误',
//        'u_email.email'     => '邮箱格式错误',
        'u_password.require' => '请输入密码',
//        'verify.require'   => '请输入验证码',
//        'verify.captcha'   => '验证码不正确'
    ];
}